Socket
Socket
Sign inDemoInstall

@spectrum-web-components/opacity-checkerboard

Package Overview
Dependencies
1
Maintainers
10
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @spectrum-web-components/opacity-checkerboard

The `opacity-checkerboard` class is used to highlight opacity. Leverage these styles in your component as outlined below to unify you application's visuals with those delivered by various Spectrum Web Components.


Version published
Weekly downloads
1.6K
increased by59.06%
Maintainers
10
Created
Weekly downloads
 

Changelog

Source

0.42.5 (2024-05-24)

Bug Fixes

  • coachmark,overlay: adjust imports of overlay and coachmark (#4455) (39706da)
  • number-field: select full value when using Tab to enter a field with a unit (#4340) (a9d5cef)
  • overlay: ensure hint Overlays within shadow roots open as expected (#4443) (7dd64b9)
  • overlay: ensure that passing "open" to the directive manages a single strategy (#4474) (15d6ac7)
  • overlay: persist "host" in directive rendered Overlay content (#4475) (5d189c2)

Readme

Source

Description

The opacity-checkerboard class is used to highlight opacity. Leverage these styles in your component as outlined below to unify you application's visuals with those delivered by various Spectrum Web Components.

Usage

Import the styles from the opacity-checkerboard CSS:

import opacityCheckerBoardStyles from '@spectrum-web-components/opacity-checkerboard/src/opacity-checkerboard.css.js';

Add it to your component's styles array before your component's styles. The order that you include the styles in makes a difference, because selectors within opacity checkerboard may have the same specificity as those within your component.

public static override get styles(): CSSResultArray {
    return [opacityCheckerBoardStyles, styles];
}

Use the opacity-checkerboard class in your component's render() method:

<div
    class="opacity-checkerboard"
    style="inline-size: 100px; block-size: 100px;"
></div>

Keywords

FAQs

Last updated on 24 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc